(def DateTime #?(:clj org.joda.time.DateTime,
                 :cljs goog.date.UtcDateTime))

#?(:cljs
   (extend-protocol ToDateTime
     goog.date.Date
     (-to-date-time [x]
       (goog.date.UtcDateTime. (.getYear x) (.getMonth x) (.getDate x)))))

;; vim:ft=clojure:
